Hi, Buffer b = create() b = "qwertyuiop" obj.attrDXLName = tempStringOf(b) delete(b) // (1)
SystemAdmin - Fri Jan 28 10:55:02 EST 2011 |
Re: Deleting buffers in DXL attribute
For each object the attribute DXL is executed in its own DXL context, and after the calculation the memory is invalidated. Normally you should not be able to leak memory in an attribute DXL since all memory that is associated with a DXL context is freed after the DXL program of that context has ended. You can try yourself by writing
// you can also fill up this buffer, you will get no memory rise
Buffer b = create(10000000)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Deleting buffers in DXL attribute Thanks for thorough explanation. Jarek |